import { setupPermission } from '@/plugins/permission'
import { setupRouter } from '@/router'
import { setupStore } from '@/store'
import { setupDirective } from '@/directive'

export default {
  install(app) {
    setupDirective(app)// 自定义指令(directive)
    setupRouter(app)// 路由(router)
    setupStore(app)// 状态管理(store)
    setupPermission()// 路由守卫
  }
}
